package jnpf.common.enums.dify;

import java.util.ArrayList;
import java.util.List;

/**
 *  用于记录当前拥有的AI，无实际意义
 */
public enum DifyAiEnum {

    MANAGE_MODULE_CREATE_AI("管理工程树生成AI", "manage_module_create_ai", 1),
    TECH_MODULE_CREATE_AI("技术工程树生成AI", "tech_module_create_ai", 2),
    DO_CREATE_AI("DO生成AI", "do_create_ai", 3),
    MANAGE_MODULE_TALK_AI("管理工程树对话AI", "manage_module_talk_ai", 4),
    TECH_MODULE_TALK_AI("技术工程树对话AI", "tech_module_talk_ai", 5),
    MANAGE_manage_module_talk_ai("管理DO对话AI", "manage_manage_module_talk_ai", 6),
    TECH_manage_module_talk_ai("技术DO对话AI", "tech_manage_module_talk_ai", 7),
    KNOWLEDGE_BASE_TALK_AI("知识库对话AI", "knowledge_base_talk_ai", 8),
    DOC_ANALYZE_AI("流式文档解析", "doc_analyze_ai", 9),
    ;

    private final String des;
    private final String keyName;
    private final Integer type;

    DifyAiEnum(String des, String keyName, Integer type) {
        this.des = des;
        this.keyName = keyName;
        this.type = type;
    }

    public String getDes() {
        return des;
    }

    public String getKeyName() {
        return keyName;
    }

    public Integer getType() {
        return type;
    }

    /**
     * 获取type列表
     */
    public static List<Integer> getTypeList() {
        List<Integer> typeList = new ArrayList<>();
        for (DifyAiEnum difyAiEnum : values()) {
            typeList.add(difyAiEnum.getType());
        }
        return typeList;
    }

//  描述            前端方法名            接口地址
//	管理工程树生成AI  talkManageCreateAi  /dify/talk/manageCreateAi
//	技术工程树生成AI  talkTechCreateCreateAi /dify/talk/techCreateCreateAi
//	DO生成AI   talkDoCreateAi /dify/talk/doCreateAi
//
//	管理工程树对话AI  talkManageTalkAi /dify/talk/manageTalkAi
//	技术工程树对话AI  talkTechTalkAi /dify/talk/techTalkAi
//	管理DO对话AI 	talkManageDoTalkAi  /dify/talk/manageDoTalkAi
//	技术DO对话AI talkTechDoTalkAi /dify/talk/techDoTalkAi
}
